*{ You can use plain selenium command using the selenium tag }*
//Prepare tests sample
%{
	DataBaseInit.initTestDataBase()
}%

#{selenium}
    // Open the home page, and check that no error occured
    open('/login')
    waitForPageToLoad(1000)
    assertNotTitle('Application error')
	assertTitle('Login')
	type('username','pgalvao')
	type('password','pgalvao')
	clickAndWait('signin')
	assertTitle('Collaborator Profile')
	click('display_identity_panel')
	type('firstname', 'TOTO')
	type('name', 'Robert')
	type('address', '33 Avenue du Mandarin')
	type('zip', '33555')
	type('city', 'Nowhere')
	type('phone', '9876543210')
	type('email', 'rtoto@enseirb.fr')
	type('nationalities', 'luxembourgeoise')
	type('birthday', '01/04/2000')
	type('homeTown', 'Someplace')
	type('status', 'Married')
	type('credential', 'DC')
	type('function', 'Occupeur de place')
	type('duration', '4')
	type('hiring', '01/01/2008')
	clickAndWait('sauvegarder')
	
	assertText('name_display', 'Robert')
	assertText('address_display', '33 Avenue du Mandarin')
	assertText('zip_display', '33555')
	assertText('city_display', 'Nowhere')
	assertText('phone_display', '9876543210')
	assertText('email_display', 'rtoto@enseirb.fr')
	assertText('nationalities_display', 'luxembourgeoise')
	assertText('birthday_display', '01/04/2000')
	assertText('hometown_display', 'Someplace')
	assertText('status_display', 'Married')
	assertText('credential_display', 'DC')
	assertText('function_display', 'Occupeur de place')
	assertText('duration_display', '4')
	assertText('hiring_display', '01/01/2008')
	
#{/selenium}